Added misc.py