Add support for POSTed simulation in trace and use calculate instead of simulate.
Remove unused variable.