Adding a csv reader function