Implemented util.py equivalence