Mock up behaviour for the edit function.