Code from the obtain dictionary script