Added commented out threading code