Add const type to csv and data functions