Replaced id generator with reference equality (primarily used for debugging)