Removed setImmediate depedency as it is no longer needed.