changed: Add new function CApp:CurrentStackItem and use that for subs