Fix: record logical -- add 'opts' variable