Added optional pin code submission.