There is absolutely no shame in converting a program written some time in the past, altering the overall functionality. One might say this is 'hacking' code. Whatever... Retooling saves time, effort - especially when prior code had been tested and confirmed to work. The retooling need only change a small portion of the code.