Decided not to intefere with the patchDetect code. The communication between pD and cD happens through a constructor which just needs to be invoked correctly.