Speed Up

Running time for one iteration reduces from 15000 to 5500 seconds :)