Added Print statements at point of csv write to check logic vs page