I still think named arguments to this script would make things more readable throughout, but no worries for now.