Removed the print_r statement which was used for testing.