Made session logging better