Hash-based ID handling.