Incorporate filtering into backend