Changed into an eventemitter