Removed print_r and instead output results as key/value pairs.