var complete = opts.complete;
    var replications = [];

Minor niggle, but prefer consistency (pouch.level being the only exception)