Imported from https://github.com/kskkwn/mppcca