Imported from https://github.com/awslabs/fever