Adapting the code to general use