Update to make the final classification work with an external file of parameters