Added starting point to write an event polling system