Updated plugin to rely on PID files