Handy code when you need it.