Using INT_MAX instead of magic number.