Imported from https://github.com/zhennany/synthetic