Updated District Algorithm