Edit function done.