Make it work with positive and negative IDs.