Make edit_file work again