 When he was dying, he altered the will, and while still appointing Charles regent of his minor son, he was no longer to rule absolute, but restricted by a government consisted of the supporters of Gustav III.After the death of the monarch, however, Charles successfully contested the will and was given unlimited power as sole regent.The Duke-regent was in practice not willing or capable to manage the state affairs, reportedly because of his lack of energy and staying power.