Refactor StaticWalk demo to be used with multithreading.