Refactoring and introduced celery to do some of the slower things in parallel.