Worked on redraw condition.