Function ammended, "num.sources" instead of "ll"