Fixes bug where only one parameter can vary