Added repository_define check