Add max recursive constrain with optimized performing