Add region file format implementation.
Fix missing import.