Changed use of the Violation class, removed excessive variables.