Allows to handle events and stuff