Using <stdbool.h> for boolean arithmetic.