Only used in the 'redraw' method, we should move it there.