Functions that contain event handler switches should be sourced during init, otherwise they become active only after being called manually.