SECOND VERSION OF THE GAMB1T CODE.