Decoder is now a function.