Changed: First variable counter to byte, for memory efficiency.