Used freemap to track removed IDs