Added basic transaction for adding keys