Added createAnnotationsRelation and removeAnnotationsRelations functions