Added preliminary bollean filter logic.