Memory leaks fixed - code converges for all eps correctly