No need to check lastupdate when updating the archives list.
Key needs to be a string.
Replace join('\n') with triple quotes.