Added policy violation checking.