A bit of cleanup in Analyzer and making selected region an attribute