Switched many "ints" to "uint8_t" to save space