Reading CSV data using activity functions