Put actual generation into separate thread.