Added undo size preference