Fixed problem with unusued parameters.