Added and and or functions.