Fix bug in checking compliancy and print a summary at the end