Script supports multiple instances and PID files