Built-in generator