Public code for editing