Fixed horrible syntax and resurected the pow