Added named sessions, untested. Fixes #32