Break NewSession timeout out into separate function