Add NOT, AND and OR functions