Added check for working video capture device