Fixed replace calls, my bad.
Hopefully fixed add-app issues with threading