Calculate ranges more accurately in the proof of concept async debugger script