DomRegion was never set as an out parameter, also added Debug output for errors
Added multi island code ready to plugin cursor detection