Edit: I\'ve changed the .set %ajs and %ajd to var %ajs = 1 and var %ajd = 1. I\'ve also added an alias and it checks to see if the dialog is in use.