Residue Checker

Working and tested!