Added a function to utils.py.
Merge branch 'devel'