Basic foundation for a listener of events and a handler that occurs every certain amount of time