Added some extra code for setting up pathogen