Imported from https://github.com/spandanagella/verse