Fork of http://nlg.isi.edu/software/nplm/ for threadsafety and efficiency.