Cleaned up HEAD issues with utils.py