Adds `statementId` from params.

Fixes #346.