Updated Add Location function with UID.