Renamed reg.py to something meaningful, also ensured we do not repeat title parsing code