Add restart funtion