Sets the operation of the accordion.