Fixed indices -- now stencil code is working.