Added latest code from Julia and a tracer to check 'num.cells'