Added basic session management.