Hunting a bug in scheduled threads that caused a segflt. Got it and