Added support for factory with one argument