Initial implementation of utils.py