Refactored ServiceInstances so it actually works.