Modified for multiple sources
Modifeid for multiple sources