Generator handling