Only populate global variables if we found something.
Removed debugging output
Removed collapsable attribute