Merge "Make mutable state flow in the bind function scope" into main