Add the security function.