Clean up API interface to be simpler for publicPeerFile