Change eventRegister() to register()