Added viewUndone function.