Added the ability to automatically ascertain the sources.