Change update call to setInterval.