Fixed the action handler and emitter to take any number of arguments.