Updating scope and adding new keys