Allowing client to optionally specify state key