Added some support for field filtering in API.