Added generate_client_id function to common