Passing arguments to the right function helps