Extracted a max method in IdManager