Adding sessions and try/catch to share.