Made check.pl work again