Generators are required in places where the mains electricity is not available or as an emergency backup power supply when a shortage of mains power occurs. They can also be used for complex application such as peak-lopping, grid support and exporting of power.