Change to use common.opterr