Support for handling different types of events