Added threading to the deliniation service to keep the application responsive.