Merge ipython multithreading with peak retrieval changes.