Rough outline of DIYPS functions with refactored carb algorithms