Add function parameters

For greater clarity. There is a ambiguity between the user param in the function and "var user" that I hope gets clarified as well.