Minor edits
Expensive refinement routine