Use bool, close #282