Fixed withInstances. Using nasty hack for now - yuck.