[powerdebug 14/17] Optimize the code