Fixed factory method issue to pass argument lists to the constructor function.