Change from plugin to background service