Replaced max int value by constants.