Added weight to codec