Add scan function
Add basic predicates