It would be good to add a doc string or comment stating what this does and why it's needed.