Added power measurement functionality