Added basic key generation class.