Renamed waitMilliseconds sleep