Added another method (passWithParams) that accepts a funtion that has
mutliple parameters.