Added function to moreFunctions.py.