VERY HARD WORKS -- NOW TO ADD RANDOM RESTARTS