As the city grew it became necessary to extend the aqueduct and that was done in 1629

What is the correctly punctuated version of this sentence?
As the city grew, it became necessary to extend the aqueduct, and that was done in 1629.