Added support for different .dat filnames