Try use $scriptline, maybe will help.