Changed the input method in discard_redraw