FIgured out how to schedule threads