Simplify enum return_values
Removed unused 'MAX' maccro
Initialize fms for false warning