When I run this under SIM 5.0 (SP4) I get an error that there is an unknown variable %D. I have gone through the SIM 5.0 guide and seen that some variables have changed, but it appears that many have gone away. For instance, I cannot find the "new" variable for what used to be %NOTICELABEL% which shows the actual error.