Move event register to Init rather than PreInit.