Make this an application and wait for termination request
I am good at c++
Add util lib