Added missing logical AND.