Added session renewal logic.