Added a printf statement to signal the preparation to create a new thread.