Fixes removing unnecessary restarts
Restore function removed by mistake
Merge pull request #463 from owdqa/feature/remove_restarts

Fixes removing unnecessary restarts