Added ability to directly pass functions as params to another method