Implemented decoder initialization.