Added params check to ServiceFactory