New version with remregions working