Removed setImmediate usage #1045