Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
(cherry picked from commit d6170dbfedf27a6218afe242a0fae2eb8b368aec)