Update the callbacks from gen_srv to gen_fsm.