UGI has agreed to pay hundreds of thousands of dollars for its role in a gas explosion that killed five people in Allentown.

The gas company has accepted the terms and conditions ordered by the Pennsylvania Public Utility Commission, officials announced Monday.

Reading-based UGI must pay a $500,000 penalty and replace all of its cast-iron pipelines within 14 years.

"The UGI companies take very seriously the expressions of concern regarding the allegations into the UGI companies' operations," said Robert F. Beard, president and CEO, in a letter to the PUC on Monday. "The UGI companies know that it is our responsibility to safely and reliably serve customers. We continue to enhance and expand our commitment and focus on safe and reliable operations and will strive for further improvement as we move forward."

Five people were killed and several homes were destroyed in the explosion at 13th and Allen streets in 2011.

The PUC said the blast was caused by a crack in a UGI gas main.