New id implementation that stills needs formal tests.