Added logical 'and' and 'or' with lazy evaluation.