Add rule for true = 1 and false = 0.