Updating sources function