Renamed variable from maxID to lastIDNumber