Utility programs to tidy things up