Added session regenerating.