Added ability to retrieve files by extension.