Implemented pre-processing and session analysis