Previous Hack for Function Parameters Failing Me