Allows node to understand multiple sessions

Closes #146