Cleaning. Implemented startSession method.