Pin check is now working

As above. Only tested for one case.