Task states has been moved into the task.py file