Adding multisession support to client