Moved security extension into the security module.