Add a limit to undoes