Patch Set 1: (6 inline comments)

ok, have improved it a little :) not sure if there is a better way to check for indexDiff calculation beeing complete, but i'm happy with how it's done now, as it does exactly what i wanted anyway :)