Add Thread.new to prevent ThreadError.

Closes #571.