Refactored CSV read method.