Refactors runProfileAll.sh