On-the-fly file type switching.