Initial legacy code with lots of smells.