Bind events before init.