Refactored annotation parsing logic.
Added support for random prefixes.