Close statement removed, codecs replaced