Mostly finished, works well with region files