Change fPeriodic function
Cosmetic changes