Added file extension configuration option.