Finished the update of methods using prepareArgs with errmsg instead of name