Added multiprocessing instead of threading