Minor improvement to parse method.