Untested, but general idea of add_key thread