https://github.com/Elaias/ccd