Moved min()/max() to comparison section since they don't really modify the instance.