Codec and flexor