I have encapsulated part of code into BackgroundWorker. Before code was executed instantly, however within BackgroundWorker it takes enormously long in a range of 10-20 sec.