Is there a reason why this value has to be passed in and not taken from the global variable?