Interm commit - Adding session logic to save logs.