Work with ids more accurately