Modified Globals to handle global hash map
Added more security for reflection