More encode function decls.