Added the add sources logic