Debug mode now uses session.