Two things, you have hardcoded it to run only one specific diameter. Do you want to be able to run any diameter? What kinds of problems are you getting when you try to run it?
And second, adding...