When informational molecules such as DNA, RNA, and proteins fold from a floppy linear chain into a concrete shape, such as an enzyme or other nanomachine, the process is directed by subsequences along the chain that search for matching subsequences elsewhere in the chain, and then bind and lock up to stabilize the fold.