Corrected the loop that sets the "Period" values so it doesn't crash and adds the infinity symbol correctly.
Show and hide controls if infinite period is selected.