Added a way to change generators frequency/output function