Reintroduce final_i