Added new (better :D) way to register events