Changed the parameters of addToOffset to reflect the doc.