Implemented the security structure