Vectorize
Vectorize
Vectorize and circ buff
Fix circ buff bug