Power conversion was added and some bugs were fixed