Code clean up, tweaking imap parameters in par_mat