Removed code for replicas and region A