Added more changes to explorerAgent and newMain