Use process.nextTick instead of setTimeout for node v0.8.