Extracted method for input in Engine