Haha indeed, I had to re-figure this out.  Changed parameter names and added comments.