Use a better function to get the service status.