Works for node v0.8