Added skeleton code for events system