Using flexibility in P-circuits by Boolean Relations