Add an option to disable redraw