Implement cli version of decoder based on the new frame structure