Added setInstance method