Stub in middleman