handleXUpdate() sounds like it is an Event Handler. Please rename them (though it was there before)