Actually register events