First version of restart mechanism