Should this be in jmisc?