Use new events register
0.10.0