Replaced custom inherits with util.inherits