I modified so that unnecessary session is not generated.