Reimplement edit functionality.