Fixes #353 -- nifty helper.