Update utilities.py, fix unreferenced parameters