Modified add script to add all keys, not just the one at a time