Changed type bool to be an enum instead of uint8