Various validation and checks
Massive bug fix