Helper for generate unique identifier