Fork from https://github.com/symisc/vedis