Move this and the line below to <code>_registerEvents</code>