Use middleware only on WF