Add grid depth information to output result