Added threaded detectionAlgo support (didn't really solve the lag), and one signal needs to be connected.