Change interaction functions to use cases rather than value arrays