Serious improvement on Functions.py