Add boolean operators and update the sample.