Adding a bunch of new modes to capture.py.