Changed totalRevolutions to unsigned char.