Implemented CSV serialising