Added persmissions validation.
Tested 99.9%.