Implement maxCommands functionality to write a memento if number of saved Commands becomes too large.