Re: All code should be rewritten from scratch...
Making a 50-tooth cog wheel shouldn't be done by starting with a 49-tooth wheel and adding an extra one somewhere.
That would be silly, there's nowhere to put it.
Much easier to start with a 51-tooth wheel and file one off.