Moved updating to events not polling or direct function calls.