Removed unused parameter from respondToEvent function.