Added createSession stuff.