Used a predefined macro MAX instead of a sample size