This is based on the excellent work of @hanxue (see PR#25995) Closes #26847. Signed-off-by: Adam Vandenberg <flangy@gmail.com>