Implemented LogicalAnd and LogicalOr operations.