Prepared PKS to live in a separate thread.