Added ability to add/remove event handler to multiple events at once.