Finally have edit walnut working - needs more testing tho