A refactored version of MITB's rsSRC_317.