Use bool type instead of int