Session logic added