Added payload.reference to the AST