Added uid support to snippet source codes