Changing @param to Closure to prevent IDE warning (issue #12)