Generate unique key in a different way