Initialize write code. Begin writing decode code and work through various codec issues