Broke the competitive learning. This will be my next pain. Also removed a few legacy code (look for market price in purchase department, for example)