Attempt to find an existing security that matches, trying decreasingly specific searches, and create the security if nothing close can be found.
There are still a number of bugs, but the basic functionality is there