Add gsession to plugin.