Added validation classes and creation of threads