Added some file checks in the likelihood code.