What's Security function and how does it work?