Changed bool to uint8_t, added missed break