Generating StartSession method automatically