Add servicesRunning function