Integration complete to be uploaded to the server, removed print_r statement which cased headers to be rewritten.