Added support for filters in the API calls