Automate dictionary creation