Changing tasks to use celery