Made compatible with Node