Added scripting to generate indexes of roles, properties and states.