Finished the region serial code