Edit function and read for #289