Avoid relying on mutable state for learning purposes.