[FIX] Rewrote the program such that it is now running in parallel and giving the right results.