Ported API into Jar to remove external resources