Added key derivation for unassisted mode.