Adding patch for settings template, and adjust PID detection to happen inside start/stop/status to prevent reuse of stale data on restart.