Add support for file extensions.

Add support for file extensions.