Optimizing code for character.