Adding struct hook to parser.