Got rid of some of the global variable Notes.