add Restart function.