add in the option to record the original peak and period
add in np as well