More QIP
Almost working...