Added the ability to get a new, unused entity ID