Added some logging around session creation.