Added more debugging to tasks.py