Fixed function stacking for automated reference prompts