Added boolean logical for pbc