Substantially altered the setup of the model and ensure text is properly decoded