Updated gem files and imported thread.rb.