Added undo support for tick command