James removing the word function to allow execution on a Bourne shell