Thread control

Changes to allow control of threads in AXE.