Refactored parse_instruction slightly.