Removing min/max macros, using std c instead. Added predict result box