Also, please retrieve these parameters at the start of the task, within the block that catches a key error.  If something goes wrong and we don't get the expected parameters, I'd want the task to fail immediately.