Move plugin start/stop stuff to methods.