Make SetTimeout and SetInterval not duplicate