Removed logs. I think it’s safe to say this thing works! The only problem I can find is that summations can get stuck in an infinite loop when raising to large powers. I think this is an overflow issue that I haven’t tracked down yet.