Made it possible to pass additional parameters through to the summarize function.