Refactored left input