Renaming carry -> result, item -> input