Implemented client.

Made some small changes to the session interfaces.