Added debugging for files.py