Replaced function parameters by a params object