Extracted input handling