Tweak generated func