Added getInstances processing and callbacks