Removed 'undefined' arg from factory function.