Added new parameters in the function