Now works for 0^0 and 0^1