Adds annotation detection