Modifications to create text and csv