Replace boolean operators with sequential calls