Fix major code violations.