Updated for node v0.10.x