Removed global for copy_to_today function