More flexibility to generate sessions