GridJobMain modified