Generating id instead of using a static one