Add editor function (WIP)