I'll make the change though -- you're right that it's better for functions to be not rely on state when possible.