Added ability to filter by static value rather than the field itself, and added better error messages in case of problems