Added generic session processing