Move it after events registration.