Code runs in 20 mins