Make undo grouping interval configurable