Added function to common.py file