Removed unnecessary nextTick wrapping.