Implementation of the PowerAPI library