"final" is now a reserved word, so change occurrences to "finalize".