A colleciton of misc utility code