Removed class from input_factory. Thanks to dAnjou