Fixed global param bug, sorry about the whitespace formatting