Added a structure for tracking scope information.