Updated form codec to actually work sorta