API changed for concurrent implementation in CV2.