Changed activeData to activeInstances