Changing simulation app to a thread in BS (wip).