Added command line option -outputResult to mgb