Changed redo to next