This call to buildOpts seems redundant.