Removed unused set_sourceid function