Make the file extension configurable