Adding support for constructors using Object