Only used in the 'redraw' function.