Removed most of the global variables
Removed all global variables. Call methods directly instead of evaluating strings.