Added undo to CommandTypes