Added thread for camera detection