Fixing the constructor for use with Node