Replace functions used only interactively