More fixes in cs_power.py