Updated stroke code