Simplified user-input code