Support multiple elements per file.

Not my best string handling code, but it works.