Moving variable into inner scope
Make sure functions are not being called from outside an HPX thread
Adding more parameters to the cfg data during startup