Added session logging