on.mouse_release = function(x,y, mouse_button) if Mode == 'teach' then teach_mouse_release(x,y, mouse_button) else learn_mouse_release(x,y, mouse_button) end end