Added some func.py stuff