Renamed generatetID to generateID.