Return 0 if error, same as getInputPowers