Switch nextTick to setImmediate

This gives a significant increase in processing speed events, particularly in complex relationships