Finish encode and decode generated functions