Added the ability to create an object with constructor parameters.