Remove the SetInterval and instead use event handling
Created by: SergueiFedorov
So far this is the only way we have managed to get this to work. However, it would be optimal if we did not check every 3 seconds for changes but rather have an event handler do that for us.
This is a long term goal.