Use process.nextTick to keep older node deploys happy