Move sendOutputHiddenState up because it's no longer hoisted