Extract sourceid