Refactoring Input