Turned the clear strokes clause into a function that is called.