Add logging functionality to restart function