Added code for returning new entity ID's on a save