Removed print_r in api