Added ability to specif nonce via 'state' parameter.