How a standby generator works