Refactoring restart process from beginning.