Added first implementation of state recovery from a restart file