Update codec output code. Get initial codecs outputting properly etc