Generator initialization