Cleaned up min and max values