Fixed new simul, added restart, fixed distance calculation