I think we don't need to add parameters into `(xxx)`, the function's parameters would be represented by $1, $2 and so on in Shell script.
Add comments for this function would be better.