Adjust Number of Periods and Length