Make filters serializable