This is a simple script to emit an event when an interval has been set