Implemented protection logic
Merge pull request #11 from gena-admin/genaz/protection

Implemented protection logic