Commted out thread function.