Made unnecessary global variable private.