Added basic csv functionality