Break out parse method to reduce complexity.