This approach is still not ideal as it assumes there's a visible stack somewhere in the Hierarchy. It's better than the current implementation so I'm pushing it and will reiterate in the future if needed.