Implemented CSV import logic