Reading config and writing CSV