added the smart meter code.