Make auto ids work take present ids into account in useful ways