Improved session example.