Cleaning the data of session and applying adjustments