Reconfigured how the ID is calculated.