Tv written, runs with no memory leaks and pre-calculation of disp removed because of improper calculation and interference with parallelization