Added code for security module.