Added support of more than 1 codec