Changed the api: Created EventType object