Relocating script because we are going to an event emitter