Changed is_adj and is_cont to bool