Second version of the security simulator