Added support for offline sessions.