More work for the sample. Also check for Decoder that return null