Changed gen to init