Add edit functions.