Implemented getRegionCoverage() from code by Andrew Jaffe. Added a few checks to it.