Added OneInstanceGuard class