added thread sleeping to fake slow process