First attempt at a head controller with multithreading.