Added method passWithParams

Added another method, passWithParams, that accepts a function that has multiple parameters. The current pass function will only accept a function with a single parameter.