Added the global variable 'shown'