Fixed total_chunks calculation. Not having pylint is killing me.