Implements the changes to proc.py mentioned in #181