Code optimization regarding label positioning.