Added argument for file extension.