Fixed a bug with passing the prior

-Now correctly passing the prior to the FileOutput