Extractin some functionalities do utils.py