Implemented protection logic