Add ptolemy and qip