Change to break if a deviation criteria matches to avoid adding the same deviation multiple times, thanks Christoffer Jonsson.