Implemented factored output model and cdec integration.