Rewrite CheckCurse to allow iterating over all the files