Generator: User offset overflow fixed + coding style.