Bug in add params. Did not add to class variable, but to local