Change depth function and add basics for stored pointers.
Add gotos