Text this: Optimizing the Potential Impact of Energy Recovery and Pipe Replacement on Leakage Reduction in a Medium Sized District Metered Area