Now works with arbitrary instance names.