Added cv parsing function.