Updates to passgen.py, further code.