Added 'key' attribute to specify filename