Add grid tracing
First prototype of grid tracing