Multithreaded do. Added isValid metric.