If the amount of threads is now a separate variable instead of a magic number, maybe the array if thread_info structs should be sized to that variable's value. Just maybe.