Modified code pertaining to the parameters of function.