Fixed the problem that the uniqueID used within the function was returned instead of the input identifier.