Defined constants for MAX ana MIN values (magic numbers removed)