Does this have anything in common with the similar-looking code in `ga.py`?