Added a realtime mode for the onchange handler.