Added MaxRetries for API call.

Note: Also returns None if response was None (due to error) - which might not be the correct thing to do.