Implement automatic update and restart routine