* Updated code to comply with Celery 3