Events can be registered in register().