I've already got a similar system in my script and it surelly is a good idea to keep up with all the commands and identifiers we create. My code actually builds a XML database file that can then be parsed like I wish.