Ensure both or neither of P and Q are specified.