More validation and generation
Brute force method implemented