Can now pass additional arguments to handle and transitionToState