Fixed security flaw regarding output of gpg commands, moved driver to run function