Updated to the new ISecurityManager interface.