This would be a good thing to pass in as (optional) argument rather than get from a global.