Generate keys in callback

 * Closes #6