Modification to 10.pl, a little bit faster now