New .sh with some one-off function definitions