Using int boolean rather than including stdbool which seems unnecessary