Max criteria

Add max criteria checker