Added check for SERVICE_PORT and a default value.