Added initial support for transcoding.