Added preliminary support for PIN unlock.