Added checks for failed compliation.