Added a function hook for parsing annotations.