Changed setting in PID from freq to period