Casting OSStatus to int to prevent compiler warnings.
Service name can be now modified on runtime.