Sessions

Minor amendment - added some comments to code.