Implemented createSession