Added early exit to Refine method to avoid unnecessary interop.