Added the offset to adjust the output amplitude