Simple declarative generator control.