Update to work with Node >=0.8