Added ability to retry a request, and added filter method to api.