Working version

Capture count-limitation GUI disabled due to bugs