Added usage of new undo method in undo command.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>