Updating the way Min is calculated