Change boolean variable name to bool to avoid shadowing the boolean type.