Added reference parsing.