Removed unnecessary getInput() method.