Updated runtase function by -noimg -nopdf