Improved the rejected sources script.