Added codec check