Added code to create annotatoin UIDs if they did not exist.