Modify timer for setTimeout