Add listener for register objects. Refactor getInstanceConfig call