Reading M3 files