Trying a different way to call the restart hook.