Inserted the possibility of param/val arguments into the function.