rm old file
Implementing new threading approach. Support multiple apps