Added fix for running params.doneFunction() without a parameter